/*********************/
/** LightInfoRequest.java */
/*********************/
package atag.apps.mainApp;
import atag.j2mespecific.*;
import java.io.IOException;
import java.io.DataOutput;
import java.io.DataInput;


public class LightInfoRequest implements Serializable {
	private int ID;
	private String partitionLabel;
        private int partitionNo;
        public LightInfoRequest(){
            //-- blank, for deserialization
        }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getPartitionLabel() {
        return partitionLabel;
    }

    public void setPartitionLabel(String partitionLabel) {
        this.partitionLabel = partitionLabel;
    }

    public int getPartitionNo() {
        return partitionNo;
    }

    public void setPartitionNo(int partitionNo) {
        this.partitionNo = partitionNo;
    }
	
    public void serialize(DataOutput dg) throws IOException {
    //--Be careful to include all variables
        dg.writeInt(this.ID);
        dg.writeUTF(this.partitionLabel);
        dg.writeInt(this.partitionNo);
    }
    public void deserialize(DataInput dg) throws IOException, 
        ClassNotFoundException, IllegalAccessException, InstantiationException {
    //--Be careful to maintain the same order as the method above
        this.ID = dg.readInt();
        this.partitionLabel = dg.readUTF();
        this.partitionNo=dg.readInt();
    }
}
